package alto_nivel.gals;

@SuppressWarnings("serial")
public class AnalysisError extends Exception
{

    private int position;

    public AnalysisError(String msg, int position)
    {
        super(msg);
        this.position = position;
    }

    public AnalysisError(String msg)
    {
        super(msg);
        position = -1;
    }

    public int getPosition()
    {
        return position;
    }

    @Override
    public String toString()
    {
        return super.toString() + ", @ " + position;
    }
}
